package kr.hkit.androidcomplete02.ch14;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

public class AttributeButton extends Button {
	String mText = "";
	
	public AttributeButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		int i;
		String Name, Value;
		for(i=0; i<attrs.getAttributeCount(); i++){
			Name = attrs.getAttributeName(i);
			Value = attrs.getAttributeValue(i);
			mText += (Name + " = " + Value + "\n");
		}
	}

}
